<?php
/**
 * Magento Enterprise Edition
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Magento Enterprise Edition End User License Agreement
 * that is bundled with this package in the file LICENSE_EE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.magento.com/license/enterprise-edition
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magento.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magento.com for more information.
 *
 * @category    design
 * @package     rwd_enterprise
 * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
 * @license http://www.magento.com/license/enterprise-edition
 */
?>
<?php
/**
 * Gift registry items template
 *
 * @see Enterprise_GiftRegistry_Block_Items
 */
?>
<?php
    $_itemsCount = count($this->getItems());
?>
<h2 class="subtitle"><?php echo $this->__('Gift Registry Items') ?></h2>
<form action="<?php echo $this->getActionUrl() ?>" method="post" class="gift-registry-items">
    <?php echo $this->getBlockHtml('formkey') ?>
    <div class="fieldset">
        <table id="shopping-cart-table" class="data-table">
            <colgroup>
                <col width="1" class="img-col" />
                <col />
                <col width="1" />
                <col width="1" />
                <col width="1" />
                <col width="1" />
                <col width="1" />
            </colgroup>
            <thead>
                <tr>
                    <th class="gift-image">&nbsp;</th>
                    <th><span class="nobr"><?php echo $this->__('Product Name') ?></span></th>
                    <th class="a-center gift-secondary head-requested"><?php echo $this->__('Requested') ?></th>
                    <th class="a-center gift-secondary head-fulfilled"><?php echo $this->__('Fulfilled') ?></th>
                    <th class="a-center gift-secondary head-remaining"><?php echo $this->__('Remaining') ?></th>
                    <th class="a-center"><span class="nobr"><?php echo $this->__('Unit Price') ?></span></th>
                    <th class="a-center"><?php echo $this->__('Qty') ?></th>
                </tr>
            </thead>
            <tfoot>
                <?php if ($_itemsCount): ?>
                <tr>
                    <td colspan="50" class="a-right">
                        <button type="submit" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Add to Cart')) ?>" class="button btn-update"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
                    </td>
                </tr>
                <?php endif; ?>
            </tfoot>
            <tbody>
                <?php foreach($this->getItems() as $_item): ?>
                    <?php echo $this->getItemHtml($_item) ?>
                <?php endforeach ?>
            </tbody>
        </table>
        <script type="text/javascript">decorateTable('shopping-cart-table')</script>
    </div>
</form>
<?php if (!$_itemsCount): ?>
    <p><?php echo $this->__('Gift Registry has no items.') ?></p>
<?php endif; ?>
